#include "colors.inc" #include "golds.inc" #include "metals.inc" #include "woods.inc" #include "transforms.inc" #include "shapes.inc" #include "math.inc" #include "glass.inc" #include "stones.inc" #include "textures.inc" // this declares a complex object but doesn't draw it #declare aBoxSphere = object { difference // also try difference (may put box first) and union { box { <-1,-1,-1> <1,1,1> pigment{color Magenta} } sphere { <0,0,0> 1.2 pigment{color Green} } } } // this draws the above object object { aBoxSphere translate <1,0,0> // try rotate <0,30,0> which rotates 30 degrees around y-axis } camera { location <0.0, 2.0, -5.0> look_at <0.0, 0.0, 0.0> } light_source { <0,2,-5> color rgb <1,1,1> } // x,y, and z axes cylinder { <-10, 0, 0>, <10, 0, 0>, 0.1 pigment {color Red} } cylinder { <0, 10, 0>, <0, -10, 0>, 0.1 pigment {color Blue} } cylinder { <0, 0,0>, <0, 0, -10>, 0.1 texture {T_Grnt0 } }